<?php
use yii\helpers\Html;
use yii\grid\GridView;
use yii\widgets\LinkPager;

/* @var $this yii\web\View */
/* @var $dataProvider yii\data\ActiveDataProvider */

$this->title = 'Users';
$this->registerCssFile('/css/user.css');
$this->registerCssFile('/css/main.css');
?>
<div class="content" id="contentframe">
	<div class="user-main">
		<div class="">
			<div class="items4 featured_portfolio">
				<ul class="item_list">
		<?php if(!empty($model)):?>
		<?php foreach($model as $val):?>
		<li style='padding: 0px' class="col-md-2 col-sm-3 col-xs-6 courseli"
						data-anim-type="fadeInUp" data-anim-delay="400"><a
						href="/course/view/<?=$val['id']?>.html" target="_blank"> <img
							alt='<?=$val['course']['name']?>'
							src="<?=$val['course']['logo']?>">
							<div class="skuContainer">
								<p class="skuTitle"><?=mb_strimwidth($val['course']['name'], 0, 32, '...','utf-8')?></p>
								<p class="skuInfo">发布时间:<?=date('Y-m-d',$val['course']['create_at'])?></p>
								<p class="skuTitle"><?=$val['course']['look']?>(人)阅读</p>
							</div>
					</a></li>
		<?php endforeach;?>
		<?php endif;?>
		</ul>
			</div>
		</div>
		<?=LinkPager::widget(['pagination'=>$pages,'options'=>['class'=>'col-md-12 pagination','style'=>' clear: both;display: block;padding: 20px 0;']])?>
	</div>

</div>
